
#include "Thread.h"

namespace basterd
{
	// --------------------------------------------------------------------
	// MutexUnlocker interface
	// --------------------------------------------------------------------
	MutexUnlocker::MutexUnlocker( Mutex& theMutex )
		: mutex(theMutex)
	{
	}
	// --------------------------------------------------------------------
	MutexUnlocker::~MutexUnlocker()
	{
		mutex.unlock();
	}
	// --------------------------------------------------------------------
}
